package org.budo.druid.filter.log.util;

import com.alibaba.druid.filter.logging.LogFilter;

/**
 * @author li
 * @version 1 (2015年7月22日 下午7:46:29)
 * @since Java7
 */
public class LogFilterUtil {
    public static <T extends LogFilter> T defaultLogFilterConfig(T logFilter) {
        logFilter.setStatementExecutableSqlLogEnable(true);

        logFilter.setStatementCloseAfterLogEnabled(false);
        logFilter.setStatementCreateAfterLogEnabled(false);
        logFilter.setStatementParameterSetLogEnabled(false);
        logFilter.setStatementPrepareAfterLogEnabled(false);
        logFilter.setStatementExecuteQueryAfterLogEnabled(false);

        return logFilter;
    }
}